<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML>
<HEAD>
<TITLE>
BooleanValueInverter class
</TITLE>

<LINK REL ="stylesheet" TYPE="text/css" HREF="../../resources/stylesheet.css" TITLE="Style">
</HEAD>

<BODY BGCOLOR="white">


<!-- ========= START OF TOP NAVBAR ======= -->

<table border="0" width="100%">
<tr>
<td width="50%">
<p align="left">
<a href="http://mvvmbasics.mobilemotion.eu/" target="_blank" title="MVVMbasics Homepage"><img src="../../resources/logo_mvvmbasics.png" alt="MVVMbasics Logo" border="0"></a>
</p>
</td>
<td width="50%">
<p align="right">
<a href="http://www.mobilemotion.eu/" target="_blank" title="mobilemotion.eu Homepage"><img src="../../resources/logo_mobilemotion.png" alt="mobilemotion.eu Logo" border="0"></a>
</p>
</td>
</tr>
</table>

<HR>

<p><a href="../../index.htm" title="MVVMbasics Class Reference Homepage">Back to Class Reference home page</a></p>

<!-- ========= END OF TOP NAVBAR ========= -->

<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">MVVMbasics.Converters</FONT>
<BR>
Class BooleanValueInverter
</H2>

<CODE>
<a href="http://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.xaml.data.ivalueconverter.aspx" target="_blank" title="IValueConverter">Windows.UI.Xaml.Data.IValueConverter</a> | <a href="http://msdn.microsoft.com/en-us/library/system.windows.data.ivalueconverter(v=vs.110).aspx" target="_blank" title="IValueConverter">System.Windows.Data.IValueConverter</a>
<br>
&nbsp;&nbsp;<IMG SRC="../../resources/inherit.gif" ALT="implemented by "><B>MVVMbasics.Converters.BooleanValueInverter</B>
<br>&nbsp;
</CODE>
<HR>
<CODE>
&nbsp;<br>
public class <B>BooleanValueInverter</B> : <a href="http://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.xaml.data.ivalueconverter.aspx" target="_blank" title="IValueConverter">Windows.UI.Xaml.Data.IValueConverter</a> | <a href="http://msdn.microsoft.com/en-us/library/system.windows.data.ivalueconverter(v=vs.110).aspx" target="_blank" title="IValueConverter">System.Windows.Data.IValueConverter</a>
</CODE>

<P>
Converter class that inverts (negates) boolean values. In addition, it can process an additional IValueConverter instance that is passed as ConverterParameter and calls this converter's Convert method before or after the inverting operation, depending on whether the additional converter expects a boolean value as input, or produces a boolean value as output.
</P>

<hr>

<!-- ======== METHOD SUMMARY ======== -->

<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Method Summary</B></FONT></TH>
</TR>

<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>object&nbsp;</CODE></FONT></TD>
<TD>
<CODE><B><a href="#Convert()">Convert</a></B>(object value, <a href="http://msdn.microsoft.com/en-us/library/system.type(v=vs.110).aspx" target="_blank" title="System.Type">Type</a> targetType, object parameter, ...)</CODE>
<BR>
<span class="Indented">Inverts boolean values, either directly or by applying an additional converter that expects or returns a boolean value.</span>
</TD>
</TR>

</TABLE>
&nbsp;

<!-- ========= METHOD DETAIL ======== -->

<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="Convert()"><!-- --></A><H3>
Convert</H3>
<CODE>public object <B>Convert</B>(object value, <a href="http://msdn.microsoft.com/en-us/library/system.type(v=vs.110).aspx" target="_blank" title="System.Type">Type</a> targetType, object parameter, ...)</CODE>
<p class="Indented">Inverts boolean values, either directly or by applying an additional converter that expects or returns a boolean value.</p>

<div class="Indented">
<B>Parameters:</B>
<p class="Indented">
<CODE>value</CODE> - Input value<br>
<CODE>targetType</CODE> - (not used)<br>
<CODE>parameter</CODE> - Optional additional converter: If provided, is called either before or after the invertion (depending on whether it expects or returns a boolean value). If not provided, the input value must be boolean and is inverted directly.<br>
</p>
<B>Returns:</B>
<p class="Indented">
Output value<br>
</p>
</div>

<!-- ========= END OF CLASS DATA ========= -->
<HR>

</body>
</HTML>